@Echo ON
CD /D "%~dp0"

Set M2=%USERPROFILE%\.m2\repository

Set CP=.\target\classes
Set CP=%CP%;..\cnasortRMILib\target\classes
Set CP=%CP%;%M2%\com\lexicalscope\jewelcli\jewelcli\0.8.5\jewelcli-0.8.5.jar
Set CP=%CP%;%M2%\log4j\log4j\1.2.17\log4j-1.2.17.jar
Set CP=%CP%;%M2%\junit\junit\4.11\junit-4.11.jar
Set CP=%CP%;%M2%\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar
Set CP=%CP%;%M2%\com\google\guava\guava\13.0.1\guava-13.0.1.jar

Set MAIN=%1

%JAVA_7_HOME%\bin\java.exe -Djava.security.policy=.\target\classes\java.policy -Djava.rmi.server.codebase=file:C:\Data\Java\cnasort\cnasortRMIServer\target\classes -Xmx2048m -XX:MaxPermSize=256m -enableassertions -Dfile.encoding=UTF-8 -classpath %CP% %MAIN% %2 %3 %4 %5 %6 %7 %8 %9
Pause
